﻿#ifndef __CANVAS_WINDOW_H__
#define __CANVAS_WINDOW_H__
#include "window/wxwidgets/ssWXGLPanel.h"
#include "GameWorld.h"

using namespace StarSeeker;

class CanvasWindow : public ssGLPanel
{
public:
	CanvasWindow(wxWindow* parent, const wxPoint& point, const wxSize& size);
	~CanvasWindow(void);

protected:
	virtual void OnRender();
	//消息处理
	virtual void OnExit();
	virtual void OnKeyDown(wxKeyEvent& ev);
	virtual void OnKeyUp(wxKeyEvent& ev);
	virtual void OnMouseMove(wxMouseEvent& ev);
	virtual void OnMouseWheel(wxMouseEvent& ev);
	virtual void OnLeftMouseUp(wxMouseEvent& ev);

	GameWorld		m_gameWorld;
};

#endif
